package main.aquarium

fun main() {
    buildAquarium()
}

fun buildAquarium() {
    val myAquarium = Aquarium()
    println(
        """
        height:${myAquarium.height}
        width:${myAquarium.width}
        length:${myAquarium.length}
    """.trimIndent()
    )
    println("Volume:${myAquarium.volume}")

    val smallAquarium = Aquarium(width = 10, length = 50)
    println("Volume:${smallAquarium.volume}")

    val myAquarium2 = Aquarium(numberOfFish = 9)

    println(
        """
        Small Aquarium2：${myAquarium2.volume} liters
        length:${myAquarium2.length}
        width:${myAquarium2.width}
        height:${myAquarium2.height}
    """.trimIndent()
    )
}

fun feedFish(fish: FishAction) {
    fish.eat()
}

fun makeFish() {
    val shark = Shark()
    val goldFish = GoldFish()
    println("shark color ${shark.color},gold fish color ${goldFish.color}")
    feedFish(shark)
    feedFish(goldFish)
}
